Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stylable/node

Package Overview
Dependencies
Maintainers
5
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylable/node

Integrate Stylable into your node application

  • 0.1.22
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4K
increased by58.51%
Maintainers
5
Weekly downloads
 
Created
Source

@stylable/node

npm version

@stylable/node is a simple integration that allows integrating Stylable into your node application. The most common use-case is server-side rendering.

Installation

yarn add --dev @stylable/node

Usage

Import the attachHook utility from @stylable/node, and invoke it. The attachHook can receive optional arguments in the form of a config object.

See the type definition here.

const {attachHook} = require('@stylable/node');
attachHook();

const style = require('./stylesheet.st.css');

License

Copyright (c) 2017 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by a BSD license.

FAQs

Package last updated on 13 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc